﻿using System.ComponentModel.Composition;
using MediatorLib;

namespace ResourceEnumerator.Inrastructure
{
    [Export(typeof(IServiceLocator))]
    internal class ServiceLocator : IServiceLocator
    {
        public ServiceLocator()
        {
            Messenger = new Mediator();
        }

        public Mediator Messenger { get; }
        
        [Import]
        public IEnumerationService EnumerationService { get; private set; }
    }
}
